package com.hongdee.crm.loss.service;

import com.hongdee.crm.loss.entity.TCrmCarLoss;

import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2017/5/5.
 */
public interface TCrmLossService {
    /**
     * 停用 启用接口
     */
    public void update(String id, String status) throws Exception;

    /*
    * 分页查询
    * */
    public Map newPage(String start, String limit, String typeCode, String code, String companyId) throws Exception;

    /*
    * 查询更改
    * */
    public Map info(String id) throws Exception;

    /*
    * 新增与保存
    * **/
    public TCrmCarLoss saveOrUpdate(TCrmCarLoss tem, String uid) throws Exception;

    /**
     * @param typeCode
     * @param companyId
     * @return
     * @throws Exception
     */
    public List<Map> combo(String typeCode, String companyId) throws Exception;
    public List<Map<String, Object>> getLossListByTypeCode(String typeCode, String uid,String companyId)throws Exception;

}
